package com.springcloud;

import com.myrule.KuangRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ProjectName: springcloud_1
 * @Package: com.com.springcloud
 * @ClassName: springcloud_80
 * @Author: 郑涛
 * @Description:
 * @Date: 2020/10/16 15:26
 * @Version: 1.0
 */

@SpringBootApplication
@EnableEurekaClient  //eureka集群，后期要用  eureka和ribbno整合后，客户端就可以直接调用不用关心ip和端口
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = KuangRule.class)  //ribbno 负载均衡 后期要用  微服务启动时加载自定义ribbno类
public class springcloud_80 {

    public static void main(String[] args) {
        SpringApplication.run(springcloud_80.class, args);
    }
}
